home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / LEFTSTR.CC < prev    next >
Text File  |  1993-04-04  |  254b  |  10 lines

  1. left_str(int x, char *str, char *new_str)
  2. /* Please the left x number of character from *str into *new_str */
  3. {
  4.         while(x && *str) {
  5.                 *new_str=*str;
  6.                 new_str++; str++; x--;
  7.         }
  8.         *new_str=0x00;
  9. }
  10.